import { PolylineEdge, PolylineEdgeModel } from "@logicflow/core";

class SequenceModel extends PolylineEdgeModel {
  // 设置边样式
  getEdgeStyle() {
    const style = super.getEdgeStyle();

    style.strokeDasharray = "4, 4";
    style.stroke = "#F22";
    return style;
  }

  // 设置边文本样式
  getTextStyle() {
    const style = super.getTextStyle();
    style.fontSize = 16;

    return style;
  }
}

export default {
  type: "ngline",
  view: PolylineEdge,
  model: SequenceModel,
};
